package model;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;


public class Earthquake {
	private Date updated;
	private String title;
	private String subtitle;
	private Link documentLink;
	private Link documentHomepage;
	private Author author;
	private String id;
	private String icon;
	private List<EarthquakeEntry> earthquakeEntries = new ArrayList<EarthquakeEntry>();
	
	public Earthquake() {}
	
	public Date getUpdated() {
		return updated;
	}
	public void setUpdated(Date updated) {
		this.updated = updated;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getSubtitle() {
		return subtitle;
	}
	public void setSubtitle(String subtitle) {
		this.subtitle = subtitle;
	}
	public Link getDocumentLink() {
		return documentLink;
	}
	public void setDocumentLink(Link documentLink) {
		this.documentLink = documentLink;
	}
	public Link getDocumentHomepage() {
		return documentHomepage;
	}
	public void setDocumentHomepage(Link documentHomepage) {
		this.documentHomepage = documentHomepage;
	}
	public Author getAuthor() {
		return author;
	}
	public void setAuthor(Author author) {
		this.author = author;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getIcon() {
		return icon;
	}
	public void setIcon(String icon) {
		this.icon = icon;
	}
	
	public List<EarthquakeEntry> getEarthquakeEntries() {
		return earthquakeEntries;
	}

	public void setEarthquakeEntries(List<EarthquakeEntry> earthquakeEntries) {
		this.earthquakeEntries = earthquakeEntries;
	}
	
	public void addEarthquakeEntry(EarthquakeEntry entry) {
		earthquakeEntries.add(entry);
	}
}
